By comparing the identities of two entities, this inversion control method handles the request to determine if those are equal.

The identity of each entity is obtained by the KeyMembers property.

Namespace: Keystone.Carbonite.Entity
Assembly: Keystone.Carbonite.Entity (in Keystone.Carbonite.Entity.dll)

protected override bool OnAreEqual( 
TEntity leftEntity
TEntity rightEntity 
)
This language is not supported or no code example is available.

Parameters

leftEntity

Type: TEntity

The left entity.

rightEntity

Type: TEntity

The right entity.

Return Value

true if the identities of the two entities are equal, false otherwise.
Exception type Condition

ArgumentException

If a null reference (Nothing in Visual Basic) or empty value is given for the arguments.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono